package com.example.statemachine.entity;

import com.example.statemachine.lock.LockField;
import lombok.Data;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author ThinkPad
 */
@Data
public class Credential implements Serializable {
    private static final long serialVersionUID = -8519212735971668217L;

    @Id
    private Integer sid;

    private String id;

    @LockField
    private String goodsId;

    private String goodsName;

    private Integer status;

    private Date validDate;

    @LockField
    private Integer version;
}